﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web.Mvc;
using System.Globalization;
//using Nop.Web.Validators.Boards;
using FluentValidation.Attributes;
using Nop.Web.Validators.Boards;

namespace SDFAuth.Models
{
    [Validator(typeof(LoginModelValidator))]
    public class LoginModel
    {
        [DisplayName("用户名")]
        //[Remote("Exists", "Login", ErrorMessage = "用户账号已存在")]
        public string UserName { get; set; }
        
        [DataType(DataType.Password)]
        [DisplayName("密码")]
        public string Password { get; set; }

        [DisplayName("验证码")]
        public string ValidateCode { get; set; }

        [DisplayName("记住我?")]
        public bool RememberMe { get; set; }
    }
}
